<template>
	<view class="page">
		<up-button text="uviewplus的按钮组件" type="primary"></up-button>
		这是首页：{{getDate().date}}
	</view>
</template>

<script setup>
	import {
		onLoad
	} from '@dcloudio/uni-app'
	import {
		ref,
		reactive
	} from 'vue'
	import {
		store
	} from '@/store/index.js'
	import {
		getDate
	} from '@/config/hooks.js'
	onLoad((args) => {
		console.log('首页收到的参数对象', args);
		if (!store.token) {
			console.log('没有读取到用户的token，用户还没有登录', store.token);
		}
	})
</script>

<style lang="scss" scoped>
	.page {
		width: 750rpx;
		min-height: 100vh;
		background-color: #fefefe;
	}
</style>